package ch4;

import java.util.Scanner;

public class Zxf6 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入是否为会员与购物金额");
        String a = in.next();
        double b = in.nextDouble();
        if (a.equals("是")) {
            if (b < 200) {
                b=b*0.8;
                System.out.println("8折"+b);
            } else {
                b=b*0.75;
                System.out.println("7.5折"+b);
            }
        } else if (b >= 100) {
            b =b*0.9;
            System.out.println("9折"+b);
        } else {
            b=b;
            System.out.println("无折扣"+b);
        }
    }
}



